package cn.edu.ecut.se2024.model.supplier_mgmt;

import java.io.Serializable;

@SuppressWarnings("serial")
public class SupplierAddress implements Serializable {  // 供应商地址类
	private int sid;  // 供应商ID
	private int id;  // 地址ID
	private String address;  // 地址
	private boolean defaults;  // 是否为默认地址
	
	public SupplierAddress() {
		super();
		this.sid = -1;
		this.id = -1;
		this.address = "";
		this.defaults = false;
	}
	
	public SupplierAddress(int sid, int id, String address, boolean defaults) {
		super();
		this.sid = sid;
		this.id = id;
		this.address = address;
		this.defaults = defaults;
	}
	
	public int getSid() {
		return sid;
	}
	public void setSid(int sid) {
		this.sid = sid;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public boolean isDefaults() {
		return defaults;
	}
	public void setDefaults(boolean defaults) {
		this.defaults = defaults;
	}
}
